<div id="navigation">
	<a href="{U_HOME}">{DOMAIN} {L_CPANEL_INDEX}</a> :: <a href="{U_SSL_MANAGER}">SSL Manager</a> :: Certificate Signing Requests 
</div>
<br />
<script>
function checkcsr() {
        if ((document.csrform.host.selectedIndex == -1) || (document.csrform.host.options[document.csrform.host.selectedIndex].value == "")) {
                alert("You must select a host that has a key");
                return (false);
        }
}
</script> 
<div class="row1" align="center" width="100%">
	<b>Certificate Signing Requests on Server</b> 
</div>
<br />
<br />
<table align="center">
	<tr>
		<th>
			Certificate Signing Requests 
		</th>
		<th>
			Actions 
		</th>
	</tr>
<!-- BEGIN switch_no_csr -->
	<tr>
		<td>
			No Certificate Signing Requests found
		</td>
		<td>
		</td>
	</tr>
<!-- END switch_no_csr -->
<!-- BEGIN current_csr_row -->
	<tr>
		<td>
			{current_csr_row.CSR_NAME} 
		</td>
		<td>
			<a href="{current_csr_row.U_VIEW}">View</a> :: <a href="{current_csr_row.U_DELETE}">Delete</a> 
		</td>
	</tr>
<!-- END current_csr_row -->
</table>
<br />
<br />
<div class="row1" align="center" width="100%">
	<b>Generate New Key</b> 
</div>
<br />
Note that you must generate or upload a key before you can generate any certificate signing requests.
<br />
<br />
<form action="{S_GENERATE_CSR}" name="csrform" method="{S_METHOD}" onSubmit="return checkscr();">
	<table align="center">
		<tr>
			<td>
				Host
			</td>
			<td>
				<select name="host">
					{S_SSL_KEYS}
					</select>
				</td>
			</tr>
			<tr>
				<td>
					Country
				</td>
				<td>
					<input type="text" name="country" size="2" maxlength="2">
				</td>
			</tr>
			<tr>
				<td>
					State
				</td>
				<td>
					<input type="text" name="state">
				</td>
			</tr>
			<tr>
				<td>
					City
				</td>
				<td>
					<input type="text" name="city">
				</td>
			</tr>
			<tr>
				<td>
					Company
				</td>
				<td>
					<input type="text" name="company">
				</td>
			</tr>
			<tr>
				<td>
					Company Divison
				</td>
				<td>
					<input type="text" name="companydivision">
				</td>
			</tr>
			<tr>
				<td>
					Email
				</td>
				<td>
					<input type="text" name="email">
				</td>
			</tr>
			<tr>
				<td>
					Pass Phrase
				</td>
				<td>
					<input type="text" name="pass">
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="hidden" name="item" value="csr"> <input type="hidden" name="itemname" value="Certificate Signing Request"> <input type="submit" value="Generate"> 
				</td>
			</tr>
		</table>
	</form>
